package com.xiguaji.tiktok.v1.tiktok.help.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
public class PageList<T> {
    private int pageSize=10;   //页大小，即每页的记录数
    private int pageNumber=1;   //页码
    private int pageTotal=0;    //总页数
    private int totalSize=0;   //总记录数
    private List<T> content=new ArrayList<T>();


    public List<T> getList() {
        if(content==null){
            content=new ArrayList<T>();
        }
        return content;
    }

    public void setList(List<T> content) {
        this.content = content;
    }


}